import request from '@/utils/request'

// 查询商户等级信息列表
export function listMerchantLevel(query) {
  return request({
    url: '/business/admin/merchantLevel/list',
    method: 'get',
    params: query
  })
}

// 查询商户等级信息详细
export function getMerchantLevel(id) {
  return request({
    url: '/business/admin/merchantLevel/' + id,
    method: 'get'
  })
}

// 新增商户等级信息
export function addMerchantLevel(data) {
  return request({
    url: '/business/admin/merchantLevel',
    method: 'post',
    data: data
  })
}

// 修改商户等级信息
export function updateMerchantLevel(data) {
  return request({
    url: '/business/admin/merchantLevel',
    method: 'put',
    data: data
  })
}

// 删除商户等级信息
export function delMerchantLevel(id) {
  return request({
    url: '/business/admin/merchantLevel/' + id,
    method: 'delete'
  })
}
